import serial
import serial.tools.list_ports
# ser = serial.Serial("com4",9600,timeout=0.5)

plist = list(serial.tools.list_ports.comports())

if __name__ == "__main__":
    for i in range(3):
        print(i)

